package com.xinjian.jianba.dto.es;

import java.util.List;
import java.util.Map;

public class EsServiceResult {

	private String docId;
	private int status=-1;
	private String Result;
	private Map<String,Object> map;
	private List<Map<String,Object>> list;
	public enum ResultStatus{
		 CREATED(0), 
	     UPDATED(1),
	     DELETED(2),
	     NOT_FOUND(3),
	     NOOP(4),
	     CONFLICT(5),
		ERROR(6),
		SUCCESS(7);
		private int value;
		private ResultStatus(int value){
			this.value=value;	
		}
		public int getValue() {
			return value;
		}
		public void setValue(int value) {
			this.value = value;
		}
		
	}
	public String getDocId() {
		return docId;
	}
	public void setDocId(String docId) {
		this.docId = docId;
	}
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	public String getResult() {
		return Result;
	}
	public void setResult(String result) {
		Result = result;
	}
	public Map<String, Object> getMap() {
		return map;
	}
	public void setMap(Map<String, Object> map) {
		this.map = map;
	}
	public List<Map<String, Object>> getList() {
		return list;
	}
	public void setList(List<Map<String, Object>> list) {
		this.list = list;
	}

	
	
	
	
}
